def find_mean(world):
    file = open('dict.txt', 'r')
    for line in file:
        data = line.split(" ", 1)
        if data[0] > word:
            break
        elif data[0] == world:
            file.close()
            return data[1].strip()
    else:
        return "NOT FOUND"


while True:
    word = input("请输入需要查找的单词:")
    print(find_mean(word))
    if not word:
        break
